package com.example.bili.controller;

import com.example.bili.entity.Favorer;
import com.example.bili.service.FavorerService;
import jakarta.annotation.Resource;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


/**
 * (Favorer)表控制层
 *
 * @author makejava
 * @since 2025-02-20 11:02:06
 */
@RestController
@RequestMapping("/favorer")
@CrossOrigin(origins = "http://localhost:5173")
public class FavorerController {
    /**
     * 服务对象
     */
    @Resource
    private FavorerService favorerService;

    @PostMapping("/addFavorer")
    public Object addFavorer(@RequestParam Integer userId,@RequestParam  String fName) {
        return favorerService.addFavorer(userId, fName);
    }

}

